package top.tagao.m03_beHavioralPatterns.b_08_observer.listeners;

/**
 * 具体订阅者（Concrete Subscribers）
 * @author Viktor_Liu
 * @Date 2022/8/14 11:25
 */
public class EmailNotificationListener implements EventListener {
    private String email;

    public EmailNotificationListener(String email) {
        this.email = email;
    }

    @Override
    public void update(String eventType, String file) {
        System.out.println("Email to " + email + ": Someone has performed " + eventType + " operation with the following file: " + file);
    }
}
